home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / plugin / nsIJRILiveConnectPIPeer.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  137 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIJRILiveConnectPIPeer.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIJRILiveConnectPIPeer_h__
  6. #define __gen_nsIJRILiveConnectPIPeer_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nspluginroot_h__
  14. #include "nspluginroot.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. #include "nsplugindefs.h"
  22. #include "jri.h"
  23. // QueryInterface for this IID on nsIPluginManager to get a JRIEnv
  24. // XXX change this
  25. #define NS_IJRIENV_IID                               \
  26. { /* f9d4ea00-a1bc-11d1-85b1-00805f0e4dfe */         \
  27.     0xf9d4ea00,                                      \
  28.     0xa1bc,                                          \
  29.     0x11d1,                                          \
  30.     {0x85, 0xb1, 0x00, 0x80, 0x5f, 0x0e, 0x4d, 0xfe} \
  31. }
  32.  
  33. /* starting interface:    nsIJRILiveConnectPluginInstancePeer */
  34. #define NS_IJRILIVECONNECTPLUGININSTANCEPEER_IID_STR "25b63f40-f773-11d1-815b-006008119d7a"
  35.  
  36. #define NS_IJRILIVECONNECTPLUGININSTANCEPEER_IID \
  37.   {0x25b63f40, 0xf773, 0x11d1, \
  38.     { 0x81, 0x5b, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a }}
  39.  
  40. /**
  41.  * The nsIJRILiveConnectPluginInstancePeer interface is implemented by browsers
  42.  * that support JRI-based LiveConnect. Note that for 5.0, LiveConnect support
  43.  * has become JNI-based, so this interface is effectively deprecated.
  44.  *
  45.  * To obtain: QueryInterface on nsIPluginInstancePeer
  46.  */
  47. class NS_NO_VTABLE nsIJRILiveConnectPluginInstancePeer : public nsISupports {
  48.  public: 
  49.  
  50.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IJRILIVECONNECTPLUGININSTANCEPEER_IID)
  51.  
  52.   /**
  53.      * Returns a JRI env corresponding to the current Java thread of the
  54.      * browser.
  55.      *
  56.      * (Corresponds to NPN_GetJavaEnv.)
  57.      */
  58.   /* void getJavaEnv (out JRIEnvPtr aEnv); */
  59.   NS_IMETHOD GetJavaEnv(JRIEnv * *aEnv) = 0;
  60.  
  61.   /**
  62.      * Returns a JRI reference to the Java peer object associated with the
  63.      * plugin instance. This object is an instance of the class specified
  64.      * by nsIJRILiveConnectPlugin::GetJavaClass.
  65.      *
  66.      * (Corresponds to NPN_GetJavaPeer.)
  67.      */
  68.   /* void getJavaPeer (out jref aJavaPeer); */
  69.   NS_IMETHOD GetJavaPeer(jref *aJavaPeer) = 0;
  70.  
  71. };
  72.  
  73. /* Use this macro when declaring classes that implement this interface. */
  74. #define NS_DECL_NSIJRILIVECONNECTPLUGININSTANCEPEER \
  75.   NS_IMETHOD GetJavaEnv(JRIEnv * *aEnv); \
  76.   NS_IMETHOD GetJavaPeer(jref *aJavaPeer); 
  77.  
  78. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  79. #define NS_FORWARD_NSIJRILIVECONNECTPLUGININSTANCEPEER(_to) \
  80.   NS_IMETHOD GetJavaEnv(JRIEnv * *aEnv) { return _to GetJavaEnv(aEnv); } \
  81.   NS_IMETHOD GetJavaPeer(jref *aJavaPeer) { return _to GetJavaPeer(aJavaPeer); } 
  82.  
  83. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  84. #define NS_FORWARD_SAFE_NSIJRILIVECONNECTPLUGININSTANCEPEER(_to) \
  85.   NS_IMETHOD GetJavaEnv(JRIEnv * *aEnv) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJavaEnv(aEnv); } \
  86.   NS_IMETHOD GetJavaPeer(jref *aJavaPeer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJavaPeer(aJavaPeer); } 
  87.  
  88. #if 0
  89. /* Use the code below as a template for the implementation class for this interface. */
  90.  
  91. /* Header file */
  92. class nsJRILiveConnectPluginInstancePeer : public nsIJRILiveConnectPluginInstancePeer
  93. {
  94. public:
  95.   NS_DECL_ISUPPORTS
  96.   NS_DECL_NSIJRILIVECONNECTPLUGININSTANCEPEER
  97.  
  98.   nsJRILiveConnectPluginInstancePeer();
  99.  
  100. private:
  101.   ~nsJRILiveConnectPluginInstancePeer();
  102.  
  103. protected:
  104.   /* additional members */
  105. };
  106.  
  107. /* Implementation file */
  108. NS_IMPL_ISUPPORTS1(nsJRILiveConnectPluginInstancePeer, nsIJRILiveConnectPluginInstancePeer)
  109.  
  110. nsJRILiveConnectPluginInstancePeer::nsJRILiveConnectPluginInstancePeer()
  111. {
  112.   /* member initializers and constructor code */
  113. }
  114.  
  115. nsJRILiveConnectPluginInstancePeer::~nsJRILiveConnectPluginInstancePeer()
  116. {
  117.   /* destructor code */
  118. }
  119.  
  120. /* void getJavaEnv (out JRIEnvPtr aEnv); */
  121. NS_IMETHODIMP nsJRILiveConnectPluginInstancePeer::GetJavaEnv(JRIEnv * *aEnv)
  122. {
  123.     return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125.  
  126. /* void getJavaPeer (out jref aJavaPeer); */
  127. NS_IMETHODIMP nsJRILiveConnectPluginInstancePeer::GetJavaPeer(jref *aJavaPeer)
  128. {
  129.     return NS_ERROR_NOT_IMPLEMENTED;
  130. }
  131.  
  132. /* End of implementation class template. */
  133. #endif
  134.  
  135.  
  136. #endif /* __gen_nsIJRILiveConnectPIPeer_h__ */
  137.